Skip to content

feat(nodejs): koffi wrapper#27

Merged
berendsliedrecht merged 2 commits intoanoncreds:mainfrom
berendsliedrecht:koffi
Feb 12, 2026
Merged

feat(nodejs): koffi wrapper#27
berendsliedrecht merged 2 commits intoanoncreds:mainfrom
berendsliedrecht:koffi

Conversation

@berendsliedrecht
Copy link
Contributor

@berendsliedrecht berendsliedrecht commented Feb 12, 2026

  • Also using vitest for tests
  • Also added Nonce class to generate a nonce.

Signed-off-by: Berend Sliedrecht <berend@animo.id>
import { ObjectHandle } from '@hyperledger/anoncreds-shared'

import { I32ListStruct, Int32List, ObjectHandleListStruct, StringListStruct } from './structures'
import {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should get a better overhaul. Conversion, and types, are a bit different with koffi now.

Comment on lines +76 to +79
let nativeAnonCreds: NativeMethods | undefined
export const getNativeAnonCreds = () => {
if (!nativeAnonCreds) nativeAnonCreds = getLibrary()
return nativeAnonCreds
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do that in a follow-up PR now.

- Include nodejs 24 support
- Drop nodejs 18 support
- Added `Nonce` class to generate a nonce
- Now relying on vitest

Signed-off-by: Berend Sliedrecht <berend@animo.id>
@berendsliedrecht berendsliedrecht merged commit 6694695 into anoncreds:main Feb 12, 2026
5 checks passed
@berendsliedrecht berendsliedrecht deleted the koffi branch February 12, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants